package com.example.capsule_chat0322.global;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author zhuzhiming
 * @Date 2022/5/3 18:59
 */
public class GlobalAssistMap {

    private static ConcurrentHashMap<String, Object> assistMap = new ConcurrentHashMap<>();

    public static void putObject(String key, Object obj) {
        assistMap.put(key, obj);
    }

    public static Object getObject(String key) {
        return assistMap.get(key);
    }

    public static void removeObject(String key) {
        assistMap.remove(key);
    }

}
